package com.huabo.system.service;

import com.hbfk.util.JsonBean;
import com.hbfk.util.PageInfo;
import com.huabo.system.mysql.entity.TblSystemRightMySql;
import com.huabo.system.oracle.entity.TblManageRight;
import com.huabo.system.oracle.entity.TblManageUserRight;
import com.huabo.system.oracle.entity.TblOrganization;
import com.huabo.system.oracle.entity.TblSystemRight;
import com.huabo.system.utils.Tree;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface TblSystemRightService {

	JsonBean saveManageRight(TblSystemRight right, String token) throws Exception;

	JsonBean saveMySqlManageRight(TblSystemRightMySql right, String token) throws Exception;

	JsonBean findRightEntityById(BigDecimal id) throws Exception;

	JsonBean modifyManageRight(TblSystemRight right, String token) throws Exception;

	JsonBean modifyMySqlManageRight(TblSystemRightMySql right, String token) throws Exception;

	JsonBean removeManageRight(BigDecimal rightId) throws Exception;

	JsonBean findRightLIstByUser(String token, Integer rightId, String moduleType) throws Exception;

	JsonBean findChildrenRightListByUser(String token, Integer rightId, String moduleType) throws Exception;

	JsonBean findAllRightListByUser(String token, Integer rightId) throws Exception;

	JsonBean findAllRightListByCompany(String token, Integer rightId, Integer orgId, String moduleType) throws Exception;

	JsonBean grantUserRight(String rightIds, String token, Integer staffId) throws Exception;

	JsonBean grantCompanyRight(String rightIds, String token, String orgId,String moduleType) throws Exception;

	JsonBean grantCompanyRightMySql(String rightIds, String token, String orgId,String moduleType) throws Exception;

	JsonBean getCompanySettingRightList(String token, Integer rightId, String moduleType) throws Exception;

	JsonBean getCompanySettingRightListInfo(String token, Integer rightId, String moduleType) throws Exception;

	JsonBean findSystemRightSettingById(BigDecimal id) throws Exception;

	JsonBean modifySystemSettingRight(TblSystemRight right, String token) throws Exception;

	JsonBean modifyMySqlSystemSettingRight(TblSystemRightMySql right, String token) throws Exception;

	JsonBean findAllRightListcf(String token, TblSystemRight right,Integer judge) throws Exception;

	JsonBean findAllMySqlRightListcf(String token, TblSystemRightMySql right,Integer judge) throws Exception;

	JsonBean findRightListByRole(String token, Integer rightId, String moduleType) throws Exception;

	JsonBean grantRoleRight(String rightIds, String token, Integer roleId,String moduleType) throws Exception;

	JsonBean findRoleRigetListByType(String token, Integer type, String moduleType) throws Exception;

	JsonBean modifySystemRightVisible(String token, Integer rightId, Integer visible) throws Exception;

	JsonBean findAllRightListByCompanyToGrant(String token, Integer rightId, Integer roleId, String moduleType) throws Exception;
    
}
